package com.lsh.service;

import com.lsh.spring.AppConfig;
import com.lsh.spring.LshApplicationContext;

public class Test {
    public static void main(String[] args) {
        LshApplicationContext applicationContext = new LshApplicationContext(AppConfig.class);
        //代理对象是接口的类型
        UserInterface userService = (UserInterface) applicationContext.getBean("userService");
        userService.test();
    }
}
